package ooday03;

public class InterfaceDemo {

}








//演示接口的语法
interface Inter{
    public abstract void show();
    void test();
}

//演示接口的实现
interface Inter1{
    void show();
    void test();
}

class Aoo implements Inter1{
    public void show(){}
    public void test(){}
}

interface Inter2{
    public abstract void show();
}

interface Inter3{
    public abstract void test();
}

abstract class Boo{
    abstract void say();
}

class Coo extends Boo implements Inter2, Inter3{
    public void show(){}
    public void test(){}
    void say(){}
}

interface Inter4{
    public abstract void show();
}

interface Inter5 extends Inter4{
    public abstract void test();
}

class Doo implements Inter5{
    public void test(){}
    public void show(){}
}
